/** 
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package com.tompai.blog.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: tompai
 * @email：liinux@qq.com
 * @createTime: 2019年11月24日 下午11:55:29
 * @history:
 * @version: v1.0
 */
public class ContentDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	private Long cid;
	// 标题
	private String title;
	//
	private String slug;
	// 创建人id
	private Long created;
	// 最近修改人id
	private Long modified;
	// 内容
	private String content;
	// 类型
	private String type;
	// 标签
	private String tags;
	// 分类
	private String categories;
	//
	private Integer hits;
	// 评论数量
	private Integer commentsNum;
	// 开启评论
	private Integer allowComment;
	// 允许ping
	private Integer allowPing;
	// 允许反馈
	private Integer allowFeed;
	// 状态
	private Integer status;
	// 作者
	private String author;
	// 创建时间
	private Date gtmCreate;
	// 修改时间
	private Date gtmModified;

	/**
	 * 设置：
	 */
	public void setCid(Long cid) {
		this.cid = cid;
	}

	/**
	 * 获取：
	 */
	public Long getCid() {
		return cid;
	}

	/**
	 * 设置：标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取：标题
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * 设置：
	 */
	public void setSlug(String slug) {
		this.slug = slug;
	}

	/**
	 * 获取：
	 */
	public String getSlug() {
		return slug;
	}

	/**
	 * 设置：创建人id
	 */
	public void setCreated(Long created) {
		this.created = created;
	}

	/**
	 * 获取：创建人id
	 */
	public Long getCreated() {
		return created;
	}

	/**
	 * 设置：最近修改人id
	 */
	public void setModified(Long modified) {
		this.modified = modified;
	}

	/**
	 * 获取：最近修改人id
	 */
	public Long getModified() {
		return modified;
	}

	/**
	 * 设置：内容
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * 获取：内容
	 */
	public String getContent() {
		return content;
	}

	/**
	 * 设置：类型
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * 获取：类型
	 */
	public String getType() {
		return type;
	}

	/**
	 * 设置：标签
	 */
	public void setTags(String tags) {
		this.tags = tags;
	}

	/**
	 * 获取：标签
	 */
	public String getTags() {
		return tags;
	}

	/**
	 * 设置：分类
	 */
	public void setCategories(String categories) {
		this.categories = categories;
	}

	/**
	 * 获取：分类
	 */
	public String getCategories() {
		return categories;
	}

	/**
	 * 设置：
	 */
	public void setHits(Integer hits) {
		this.hits = hits;
	}

	/**
	 * 获取：
	 */
	public Integer getHits() {
		return hits;
	}

	/**
	 * 设置：评论数量
	 */
	public void setCommentsNum(Integer commentsNum) {
		this.commentsNum = commentsNum;
	}

	/**
	 * 获取：评论数量
	 */
	public Integer getCommentsNum() {
		return commentsNum;
	}

	/**
	 * 设置：开启评论
	 */
	public void setAllowComment(Integer allowComment) {
		this.allowComment = allowComment;
	}

	/**
	 * 获取：开启评论
	 */
	public Integer getAllowComment() {
		return allowComment;
	}

	/**
	 * 设置：允许ping
	 */
	public void setAllowPing(Integer allowPing) {
		this.allowPing = allowPing;
	}

	/**
	 * 获取：允许ping
	 */
	public Integer getAllowPing() {
		return allowPing;
	}

	/**
	 * 设置：允许反馈
	 */
	public void setAllowFeed(Integer allowFeed) {
		this.allowFeed = allowFeed;
	}

	/**
	 * 获取：允许反馈
	 */
	public Integer getAllowFeed() {
		return allowFeed;
	}

	/**
	 * 设置：状态
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取：状态
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置：作者
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * 获取：作者
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * 设置：创建时间
	 */
	public void setGtmCreate(Date gtmCreate) {
		this.gtmCreate = gtmCreate;
	}

	/**
	 * 获取：创建时间
	 */
	public Date getGtmCreate() {
		return gtmCreate;
	}

	/**
	 * 设置：修改时间
	 */
	public void setGtmModified(Date gtmModified) {
		this.gtmModified = gtmModified;
	}

	/**
	 * 获取：修改时间
	 */
	public Date getGtmModified() {
		return gtmModified;
	}

	@Override
	public String toString() {
		return "ContentDO{" + "cid=" + cid + ", title='" + title + '\'' + ", slug='" + slug + '\'' + ", created="
				+ created + ", modified=" + modified + ", content='" + content + '\'' + ", type='" + type + '\''
				+ ", tags='" + tags + '\'' + ", categories='" + categories + '\'' + ", hits=" + hits + ", commentsNum="
				+ commentsNum + ", allowComment=" + allowComment + ", allowPing=" + allowPing + ", allowFeed="
				+ allowFeed + ", status=" + status + ", author='" + author + '\'' + ", gtmCreate=" + gtmCreate
				+ ", gtmModified=" + gtmModified + '}';
	}
}
